package com.team7.order.controller;


import com.team7.order.service.MemberService;
import com.team7.order.utils.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 会员表 前端控制器
 * </p>
 *
 * @author 张煜杰
 * @since 2021-10-22
 */
@RestController
@RequestMapping("/order/member")
public class MemberController {
    @Autowired
    private MemberService memberService;
    @PostMapping("/queryAllMemberById/{memberId}")
    public CommonResult queryAllMemberById(@PathVariable("memberId") @RequestBody String memberId){
         CommonResult commonResult = memberService.queryAllMemberById(memberId);
         return commonResult;
    }

}

